#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int  init(int a[],int length)
{
	for (int i = 0; i < length; i++)
	{
		a[i] = 0;
	}
	return 1;
}
int print(int a[], int length)
{
	int i = 0;
	for (i = 0; i < length; i++)
	{
		printf("%d  ", a[i]);
	}
	printf("\n");
	return 1;
}

int reverse(int a[],int length)
{
	int x=0,i=0;
	for (i = 0; i < (length / 2); i++)
	{
		x = a[i];
		a[i] = a[length - 1 - i];
		a[length - 1 - i] = x;
	}
	return 1;
}

int main()
{
	int i = 0;
	int a[10];
	init(a, 10);
	print(a, 10);
	for (i = 0; i < 10; i++)
	{
		a[i] = i + 1;
	}
	print(a, 10);
	reverse(a, 10);
	print(a, 10);
	return 0;
}